package com.ssm.order.fegin;

import com.ssm.dto.CommonResult;
import com.ssm.model.stock.StockModel;
import com.ssm.order.fegin.fallback.StockFeignFallback;
import com.ssm.order.fegin.fallback.StockFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "stock-service")
        //, fallbackFactory = StockFeignFallbackFactory.class)
public interface StockFeign {

    @GetMapping("/getStockDetail")
    CommonResult<StockModel> getStockDetail();
}
